#pragma once

template <typename T>
class Singleton 
{
    static T* inst;
public:
    static T* GetInstance() 
    {
        if (nullptr == inst) 
        {
            inst = new T();
        }

        return inst;
    }
};